package cn.xttc.edu.service.impl;

import cn.xttc.edu.entity.CarType;
import cn.xttc.edu.entity.vo.CarTypeVo;
import cn.xttc.edu.mapper.CarTypeMapper;
import cn.xttc.edu.service.CarTypeService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 杨磊
 * @since 2022-03-09
 */
@Service
public class CarTypeServiceImpl extends ServiceImpl<CarTypeMapper, CarType> implements CarTypeService {

    @Autowired
    private CarTypeMapper typeMapper;

    @Override
    public IPage<CarTypeVo> pageGetAll(Page<CarTypeVo> page) {
        return typeMapper.pageGetAll(page);
    }
}
